package com.jieao.content.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jieao.framework.util.ShiroUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author weifanl
 * @Date2020/5/26 17:11
 **/
@Data
@TableName("content_diary_sub")
public class DiarySub implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId
    private  Long   id;			    //日记内容id
    private  String   content;			//内容

    private  String   createBy;			//创建者
    private Date createTime;			    //创建时间
    private  String   updateBy;			//更新者
    private  Date   updateTime;			//更新时间
    private  Integer delFlag;

    public DiarySub(){
        this.delFlag = 0;
        this.updateBy = ShiroUtils.getLoginName();
        this.updateTime = new Date();
    }

    public DiarySub(String content){
        this.content = content;
        this.delFlag = 0;
        this.updateBy = ShiroUtils.getLoginName();
        this.updateTime = new Date();
    }
}
